package com.sbl.service.impl;


import com.sbl.dao.IAccountDao;
import com.sbl.service.IAccountService;

import java.util.*;

/**
 * 账户的业务层实现类
 *      集合注入-通过set方式
 */
public class AccountServiceImpl4 implements IAccountService {

    private String[] myStrs;
    private List<Integer> myList;
    private Set<Date> mySet;
    private Map<String,String> myMap;
    private Properties myProps; //最终实现的是Map形式

    public void setMyStrs(String[] myStrs) {
        this.myStrs = myStrs;
    }

    public void setMyList(List<Integer> myList) {
        this.myList = myList;
    }

    public void setMySet(Set<Date> mySet) {
        this.mySet = mySet;
    }

    public void setMyMap(Map<String, String> myMap) {
        this.myMap = myMap;
    }

    public void setMyProps(Properties myProps) {
        this.myProps = myProps;
    }

    public void  saveAccount(){
        System.out.println(Arrays.toString(myStrs));
        System.out.println(myList);
        System.out.println(mySet);
        System.out.println(myMap);
        System.out.println(myProps);
    }

    public void saveAccount(IAccountDao iAccountDao) {

    }


}
